Pod::Spec.new do |s|
  s.ios.deployment_target = "5.0"

  s.name         = 'ThirdLoginSDK'
  s.version      = '0.0.14'
  s.license      =  { :type => 'MIT', :file => 'LICENSE' }
  s.homepage     = 'https://git.oschina.net/comicisland/ThirdLoginSDK.git'
  s.authors      =  { 'Abraham Wang' => '328768132@qq.com' }
  s.summary      = 'ThirdLoginSDK'
  s.source       =  { :git => 'https://git.oschina.net/comicisland/ThirdLoginSDK.git'}
  s.requires_arc = true

    s.subspec "Base" do |sp|
    sp.source_files = "ThirdLibFramework/ThirdLoginSDK/*.{h,m}","ThirdLibFramework/ThirdLoginSDK/**/*.{h,m}"
    end

    s.subspec "QQConnect" do |sp|
      sp.vendored_frameworks = 'ThirdLibFramework/QQSDK/*.framework'
      sp.resources = ["ThirdLibFramework/QQSDK/*.bundle"]
      sp.libraries = 'sqlite3'
      sp.framework = 'QuartzCore','SystemConfiguration','CoreTelephony','CoreText','CoreGraphics','CFNetwork'
      sp.dependency 'ThirdLoginSDK/Base'
    end

    s.subspec "WeChat" do |sp|
      sp.vendored_libraries = 'ThirdLibFramework/WeChatSDK/*.a'
      sp.source_files = "ThirdLibFramework/WeChatSDK/*.{h,m}"
      sp.libraries = 'sqlite3.0','z','c++'
      sp.framework = 'SystemConfiguration'
      sp.dependency 'ThirdLoginSDK/Base'
    end

    s.subspec "Weibo" do |sp|
      sp.vendored_libraries = 'ThirdLibFramework/libWeiboSDK/*.a'
      sp.source_files = "ThirdLibFramework/libWeiboSDK/*.{h,m}"
      sp.resources = ["ThirdLibFramework/libWeiboSDK/*.bundle"]
      sp.libraries = 'sqlite3','z'
      sp.framework = 'QuartzCore','ImageIO','SystemConfiguration','Security','CoreTelephony','CoreText','CoreGraphics'
      sp.dependency 'ThirdLoginSDK/Base'
    end
end

